package chapter3;

public class sub {
    public static void main(String[] args) {


    String str = "Monday";
    char ch = str.charAt(0);
    char c = str.charAt(1);
        switch (ch) {
        case 'M':
            System.out.println("星期一");
            break;
        case 'T':
            switch (c) {
                case 'u':
                    System.out.println("星期二");
                    break;
                case 'h':
                    System.out.println("星期四");
                    break;
            }
        case 'W':
            System.out.println("星期三");
            break;
        case 'F':
            System.out.println("星期五");
            break;
        case 'S':
            switch (c) {
                case 'a':
                    System.out.println("星期六");
                    break;
                case 'u':
                    System.out.println("星期天");
                    break;
            }
    }
}
}

